using Microsoft.AspNetCore.Mvc;

namespace DiagnosticSourceDemo.Host.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class Test3Controller : ControllerBase
    {
        [HttpGet]
        public async Task Get()
        {
            var client = new HttpClient();
            await client.GetAsync("https://www.baidu.com");
        }

        [HttpGet("LatestOrders3")]
        public async Task GetLatestOrders3()
        {
            var client = new HttpClient();
            await client.GetAsync("https://www.baidu.com");
        }

        [HttpPost]
        public async Task Create()
        {
            var client = new HttpClient();
            await client.GetAsync("https://www.baidu.com");
        }

        [HttpPut]
        public async Task Update()
        {
            var client = new HttpClient();
            await client.GetAsync("https://www.baidu.com");
        }

        [HttpDelete]
        public async Task Delete()
        {
            var client = new HttpClient();
            await client.GetAsync("https://www.baidu.com");
        }
    }
}